package org.yzhzc.friend.domain.exam.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.yzhzc.common.core.domain.BaseEntity;

import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tb_exam")
public class Exam  extends BaseEntity {

    //竞赛id（主键），使用雪花Id
    @TableId(value = "exam_id", type = IdType.ASSIGN_ID)
    private Long examId;

    // 竞赛标题
    private String title;

    // 竞赛开始时间
    private LocalDateTime startTime;

    // 竞赛结束时间
    private LocalDateTime endTime;

    // 竞赛的状态，0：未发布，1：已发布
    private Integer status;
}
